<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * P2pBoafter
 *
 * @ORM\Table(name="p2p_boafter", indexes={@ORM\Index(name="b_id", columns={"b_id"}), @ORM\Index(name="admin_id", columns={"admin_id"})})
 * @ORM\Entity
 */
class P2pBoafter
{
    /**
     * @var integer
     *
     * @ORM\Column(name="b_id", type="integer", nullable=false)
     */
    private $bId = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="start_time", type="integer", nullable=false)
     */
    private $startTime = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="end_time", type="integer", nullable=false)
     */
    private $endTime = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="content", type="text", length=65535, nullable=false)
     */
    private $content;

    /**
     * @var integer
     *
     * @ORM\Column(name="webshow", type="integer", nullable=false)
     */
    private $webshow = '1';

    /**
     * @var integer
     *
     * @ORM\Column(name="admin_id", type="integer", nullable=false)
     */
    private $adminId = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="admin_time", type="integer", nullable=false)
     */
    private $adminTime = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="af_id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $afId;



    /**
     * Set bId
     *
     * @param integer $bId
     *
     * @return P2pBoafter
     */
    public function setBId($bId)
    {
        $this->bId = $bId;

        return $this;
    }

    /**
     * Get bId
     *
     * @return integer
     */
    public function getBId()
    {
        return $this->bId;
    }

    /**
     * Set startTime
     *
     * @param integer $startTime
     *
     * @return P2pBoafter
     */
    public function setStartTime($startTime)
    {
        $this->startTime = $startTime;

        return $this;
    }

    /**
     * Get startTime
     *
     * @return integer
     */
    public function getStartTime()
    {
        return $this->startTime;
    }

    /**
     * Set endTime
     *
     * @param integer $endTime
     *
     * @return P2pBoafter
     */
    public function setEndTime($endTime)
    {
        $this->endTime = $endTime;

        return $this;
    }

    /**
     * Get endTime
     *
     * @return integer
     */
    public function getEndTime()
    {
        return $this->endTime;
    }

    /**
     * Set content
     *
     * @param string $content
     *
     * @return P2pBoafter
     */
    public function setContent($content)
    {
        $this->content = $content;

        return $this;
    }

    /**
     * Get content
     *
     * @return string
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * Set webshow
     *
     * @param integer $webshow
     *
     * @return P2pBoafter
     */
    public function setWebshow($webshow)
    {
        $this->webshow = $webshow;

        return $this;
    }

    /**
     * Get webshow
     *
     * @return integer
     */
    public function getWebshow()
    {
        return $this->webshow;
    }

    /**
     * Set adminId
     *
     * @param integer $adminId
     *
     * @return P2pBoafter
     */
    public function setAdminId($adminId)
    {
        $this->adminId = $adminId;

        return $this;
    }

    /**
     * Get adminId
     *
     * @return integer
     */
    public function getAdminId()
    {
        return $this->adminId;
    }

    /**
     * Set adminTime
     *
     * @param integer $adminTime
     *
     * @return P2pBoafter
     */
    public function setAdminTime($adminTime)
    {
        $this->adminTime = $adminTime;

        return $this;
    }

    /**
     * Get adminTime
     *
     * @return integer
     */
    public function getAdminTime()
    {
        return $this->adminTime;
    }

    /**
     * Get afId
     *
     * @return integer
     */
    public function getAfId()
    {
        return $this->afId;
    }
}
